package com.softlook.mt.server.db.dto;

import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.LinkedList;
import java.lang.Object;

public class Client {
	private Integer clientid;
	private String name;
	private List clientidDeviceRefList = new LinkedList();
	private List clientidUserRefList = new LinkedList();
	private List clientidPlaceRefList = new LinkedList();
	public Integer getClientid() {
		return this.clientid;
	}
	public void setClientid(Integer clientid) {
		this.clientid = clientid;
	}
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static boolean hasColumn(String column) {
		if(column.toUpperCase().equals("clientid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("name".toUpperCase())){
		   return true;
		}
		return false;
	}
	public boolean equals(Object object) {
		if(!(object instanceof Client)){
			return false;
		}
		
		Client table = (Client)object;
		if(this.clientid == null &&  table.clientid != null){
		   return false;
		}
		if(this.clientid != null &&  table.clientid == null){
		   return false;
		}
		if(this.clientid != null && !this.clientid.equals(table.clientid)){
		   return false;
		}
		if(this.name == null &&  table.name != null){
		   return false;
		}
		if(this.name != null &&  table.name == null){
		   return false;
		}
		if(this.name != null && !this.name.equals(table.name)){
		   return false;
		}
		return true;
	}
	public List getClientidDeviceRefList() {
		return this.clientidDeviceRefList;
	}
	public void setClientidDeviceRefList(List clientidDeviceRefList) {
		this.clientidDeviceRefList = clientidDeviceRefList;
	}
	public List getClientidUserRefList() {
		return this.clientidUserRefList;
	}
	public void setClientidUserRefList(List clientidUserRefList) {
		this.clientidUserRefList = clientidUserRefList;
	}
	public List getClientidPlaceRefList() {
		return this.clientidPlaceRefList;
	}
	public void setClientidPlaceRefList(List clientidPlaceRefList) {
		this.clientidPlaceRefList = clientidPlaceRefList;
	}
}
